{include file="public:header" /}
<style>
    .J_tabs li a{color:#666;}
</style>
<div class="subnav">
    <div class="content_menu ib_a blue line_x">
        <a href="{:url('add')}" {if condition="$e_type eq 2"}class="on"{/if}><em>关注回复</em></a><span>|</span>
        <a href="{:url('index',['e_type'=>3])}" {if condition="$e_type eq 3"}class="on"{/if}><em>菜单事件</em></a>
    </div>
</div>
<!--添加文本回复-->
<form id="info_form" action="{:url('WeixinFllow/addDo')}" method="post" enctype="multipart/form-data">
    <div class="pad_lr_10">
        <div class="col_tab">
            <ul class="J_tabs tab_but cu_li">
                <li class="current">添加文本回复</li>
                <li><a href="{:url('add',['type'=>2,'e_type'=>$e_type])}">添加图文回复</a></li>
                <li><a href="{:url('add',['type'=>3,'e_type'=>$e_type])}">添加多图文回复</a></li>
            </ul>
            <div></div>
            <div class="J_panes">
                <div class="content_list pad_10">
                    <table width="100%" cellspacing="0" class="table_form">
                        {if condition="$e_type eq 3"}
                        <tr>
                            <th>绑定微信菜单 :</th>
                            <td>
                                <select name="keyword" id="keyword">
                                    {volist name='event_menu' id='vo'}
                                    <option value="{$vo.alias}">{$vo.name}</option>
                                    {/volist}
                                </select>
                            </td>
                        </tr>
                        {/if}
                        <tr>
                            <th>回复内容 :</th>
                            <td>
                                <textarea name="data" id="data" style="width:500px;height:50px;resize:none;"></textarea>
                            </td>
                        </tr>

                    </table>
                </div>
                <input type="hidden" name="event_type" value="{$e_type}">
                <input type="hidden" name="type" value="{$type}">
            </div>
            <div class="mt10"><input type="submit" value="提交" id="dosubmit" name="" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
        </div>
    </div>
</form>
{include file="public:footer" /}
<script>
    $(function() {
        $.formValidator.initConfig({formid:"info_form",autotip:true});
        $("#data").formValidator({onshow:'请填写回复内容',onfocus:'请填写回复内容'}).inputValidator({min:1,onerror:'请填写回复内容'});
        $("#keyword").formValidator({onshow:'请选择菜单',onfocus:'请选择菜单'}).inputValidator({min:0,onerror:'请选择菜单'});

    });
</script>
</body>
</html>